<template>
  <div>
    <div v-html="context"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      context: "",
    };
  },
  methods: {
    zhi() {
      this.$axios
        .get("https://localhost:44399/api/app/pay/ali-pay-show")
        .then((res) => {
          this.context = res.data;

          setTimeout(() => {
            document.forms[0].submit();
          }, 100);
          //   this.$nextTick(()=>{
          //       document.forms[0].submit();
          //   }

          //   )
        });
    },
  },
  created() {},
  mounted() {
    this.zhi();
  },
};
</script>

<style>
</style>